package com.ruoyi.system.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 资讯管理对象 Consultation
 * 
 * @author ruoyi
 * @date 2025-06-26
 */
public class Consultation extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 主键id */
    private Integer id;

    /** 资讯标题 */
    @Excel(name = "资讯标题")
    private String title;

    /** 分类 */
    @Excel(name = "分类")
    private String category;

    /** 浏览量 */
    @Excel(name = "浏览量")
    private Integer views;

    /** 是否首页展示 */
    @Excel(name = "是否首页展示", readConverterExp = "0=展示,1=不展示")
//    @Excel(name = "是否首页展示")
    private Integer display;

    /** 是否头条 */
    @Excel(name = "是否展示头条", readConverterExp = "0=展示,1=不展示")
    private Integer headline;

    /** 发布时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发布时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date publishTime;

    /** 启用状态 */
    @Excel(name = "启用状态")
    private Integer enableStatus;

    public void setId(Integer id) 
    {
        this.id = id;
    }

    public Integer getId() 
    {
        return id;
    }

    public void setTitle(String title) 
    {
        this.title = title;
    }

    public String getTitle() 
    {
        return title;
    }

    public void setCategory(String category) 
    {
        this.category = category;
    }

    public String getCategory() 
    {
        return category;
    }

    public void setViews(Integer views) 
    {
        this.views = views;
    }

    public Integer getViews() 
    {
        return views;
    }

    public void setDisplay(Integer display) 
    {
        this.display = display;
    }

    public Integer getDisplay() 
    {
        return display;
    }

    public void setHeadline(Integer headline) 
    {
        this.headline = headline;
    }

    public Integer getHeadline() 
    {
        return headline;
    }

    public void setPublishTime(Date publishTime) 
    {
        this.publishTime = publishTime;
    }

    public Date getPublishTime() 
    {
        return publishTime;
    }

    public void setEnableStatus(Integer enableStatus) 
    {
        this.enableStatus = enableStatus;
    }

    public Integer getEnableStatus() 
    {
        return enableStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("title", getTitle())
            .append("category", getCategory())
            .append("views", getViews())
            .append("display", getDisplay())
            .append("headline", getHeadline())
            .append("publishTime", getPublishTime())
            .append("updateTime", getUpdateTime())
            .append("enableStatus", getEnableStatus())
            .toString();
    }
}
